package com.ruoyi.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 合伙人邀请对象 partners_invite
 * 
 * @author ruoyi
 * @date 2021-03-25
 */
public class PartnersInvite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 邀请ID */
    private Long inviteid;

    /** 受邀人主键 */
    @Excel(name = "受邀人主键")
    private Long topartnersid;

    /** 邀请人主键 */
    @Excel(name = "邀请人主键")
    private Long frompartnersid;

    /** 受邀人姓名 */
    @Excel(name = "受邀人姓名")
    private String name;

    /** 受邀人手机号码 */
    @Excel(name = "受邀人手机号码")
    private String phone;

    /** 受邀人地址 */
    @Excel(name = "受邀人地址")
    private String address;

    /** 受邀人账号 */
    @Excel(name = "受邀人账号")
    private String useraccount;

    /** 受邀人密码 */
    @Excel(name = "受邀人密码")
    private String password;

    /** 受邀人用户ID */
    @Excel(name = "受邀人用户ID")
    private Long userid;

    /** 获得积分 */
    @Excel(name = "获得积分")
    private Long accpoints;

    /** 处理状态：1.审核中 2.通过 3.驳回 */
    @Excel(name = "处理状态：1.审核中 2.通过 3.驳回")
    private Long status;

    /** 是否删除：1.未删除 2.已删除 */
    @Excel(name = "是否删除：1.未删除 2.已删除")
    private Long isdel;

    /** 邀请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "邀请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ctime;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date utime;

    public void setInviteid(Long inviteid) 
    {
        this.inviteid = inviteid;
    }

    public Long getInviteid() 
    {
        return inviteid;
    }
    public void setTopartnersid(Long topartnersid) 
    {
        this.topartnersid = topartnersid;
    }

    public Long getTopartnersid() 
    {
        return topartnersid;
    }
    public void setFrompartnersid(Long frompartnersid) 
    {
        this.frompartnersid = frompartnersid;
    }

    public Long getFrompartnersid() 
    {
        return frompartnersid;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setUseraccount(String useraccount) 
    {
        this.useraccount = useraccount;
    }

    public String getUseraccount() 
    {
        return useraccount;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setAccpoints(Long accpoints) 
    {
        this.accpoints = accpoints;
    }

    public Long getAccpoints() 
    {
        return accpoints;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setIsdel(Long isdel) 
    {
        this.isdel = isdel;
    }

    public Long getIsdel() 
    {
        return isdel;
    }
    public void setCtime(Date ctime) 
    {
        this.ctime = ctime;
    }

    public Date getCtime() 
    {
        return ctime;
    }
    public void setUtime(Date utime) 
    {
        this.utime = utime;
    }

    public Date getUtime() 
    {
        return utime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inviteid", getInviteid())
            .append("topartnersid", getTopartnersid())
            .append("frompartnersid", getFrompartnersid())
            .append("name", getName())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("useraccount", getUseraccount())
            .append("password", getPassword())
            .append("remark", getRemark())
            .append("userid", getUserid())
            .append("accpoints", getAccpoints())
            .append("status", getStatus())
            .append("isdel", getIsdel())
            .append("ctime", getCtime())
            .append("utime", getUtime())
            .toString();
    }
}
